package com.rickpan.dto.request;

import com.rickpan.entity.TeamMember;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;

/**
 * 更新成员角色请求DTO
 */
@Schema(description = "更新成员角色请求")
public class UpdateMemberRoleRequest {

    @Schema(description = "新角色", example = "ADMIN", allowableValues = {"OWNER", "ADMIN", "MEMBER"}, required = true)
    @NotNull(message = "角色不能为空")
    private TeamMember.Role role;

    // 构造函数
    public UpdateMemberRoleRequest() {}

    public UpdateMemberRoleRequest(TeamMember.Role role) {
        this.role = role;
    }

    // Getter和Setter方法
    public TeamMember.Role getRole() {
        return role;
    }

    public void setRole(TeamMember.Role role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return "UpdateMemberRoleRequest{" +
                "role=" + role +
                '}';
    }
}
